alert('Detection '+err.message); this._persistenceName = name;
this._editedUTC = editedUTC;
this._supportsPersistence = supportsPersistence;
this._layout.setProgressColor('goldenrod'); this._layout.setSmallProgressText('Loading files from ' + name + ' edited on ' + new Date(editedUTC) + '...'); private _storageLoadProgress(
lastLoadedFileName: string) { this._layout.setProgressColor('green'); this._layout.setSmallProgressText('Loading "' + lastLoadedFileName + '" ' + loadedFileCount + ' of ' + totalFileCount + '...'); byFullPath: { [fullPath: string]: { [property: string]: string; }; }, domUpdater: storage.attached.UpdateStorage,
persistenceUpdater: storage.attached.UpdateStorage) { alert('Loading ' + err.message); this._layout.setProgressColor('black'); this._layout.setSmallProgressText('Loaded files from ' + this._persistenceName + ' edited on ' + new Date(this._editedUTC) + '...'); addEventListener(window, 'keydown', (evt: KeyboardEvent) => { if (evt.keyCode === 83 && evt.ctrlKey) { if (evt.preventDefault) evt.preventDefault();
if ('cancelBubble' in evt) evt.cancelBubble = true; private _getUniqueKey() { var key = window.location.pathname;
var ignoreSuffix = '/index.html';
if (key.length > ignoreSuffix.length && key.slice(key.length - ignoreSuffix.length) === ignoreSuffix)
key = key.slice(0, key.length - ignoreSuffix.length);